package com.gmlive.common.gmshare.util;

import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.Intent;

/**
 * Author: xs
 * Create on: 2020/06/17
 * Description: _
 */

public class ShareUtil {

    public static boolean startActivity(Context context, Intent intent) {
        boolean bResult = true;
        try {
            context.startActivity(intent);
        } catch (ActivityNotFoundException e) {
            bResult = false;
            e.printStackTrace();
        } catch (Exception e) {
            bResult = false;
            e.printStackTrace();
        }
        return bResult;
    }
}
